<form id="edit-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('User_id')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-user_id" data-rule="required" data-source="user/index" data-field="username" class="form-control selectpage" name="row[user_id]" type="text" value="{$row.user_id|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('User_name')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-user_name" class="form-control" name="row[user_name]" type="text" value="{$row.user_name|htmlentities}">
        </div>
    </div>
<!--     <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Shop_id')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-shop_id" data-rule="required" data-source="shop/index" class="form-control selectpage" name="row[shop_id]" type="text" value="{$row.shop_id|htmlentities}">
        </div>
    </div> -->
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Shop_id')}:</label>
        <div class="col-xs-12 col-sm-8">
            <!-- <input id="c-shop_id" data-rule="required" data-source="shop/index" class="form-control selectpage row[shop_id]" name="row[shop_id]" type="text" value=""> -->
            <select class="shop_id form-control" name="row[shop_id]">
                {volist name="shopList" id='vo' key="key"}
                <option value="{$vo.id}" {if $row['shop_id'] == $vo['id']} selected {/if}>{$vo.name}</option>
                {/volist}
            </select>
        </div>
    </div> 
<!--     <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('House_id')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-house_id" data-rule="required" data-source="house/index" class="form-control selectpage" name="row[house_id]" type="text" value="{$row.house_id|htmlentities}">
        </div>
    </div> -->
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('House_id')}:</label>
        <div class="col-xs-12 col-sm-8">
            <select class="house_id form-control" name="row[house_id]">
                {volist name="houseList" id='vo' key="key"}
                <option value="{$vo.id}" {if $row['house_id'] == $vo['id']} selected {/if}>{$vo.name}</option>
                {/volist}
            </select>
        </div>
    </div>
<!--     <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Adviser_id')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-adviser_id" data-rule="required" data-source="adviser/index" class="form-control selectpage" name="row[adviser_id]" type="text" value="{$row.adviser_id|htmlentities}">
        </div>
    </div> -->
        <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Adviser_id')}:</label>
        <div class="col-xs-12 col-sm-8">
            <select class="adviser_id form-control" name="row[adviser_id]">
                {volist name="adviserList" id='vo' key="key"}
                <option value="{$vo.id}" {if $row['adviser_id'] == $vo['id']} selected {/if}>{$vo.name}</option>
                {/volist}
            </select>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Technician_ids')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-technician_ids" data-rule="required" data-source="technician/index" data-multiple="true" class="form-control selectpage" name="row[technician_ids]" type="text" value="{$row.technician_ids|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Project_ids')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-project_ids" data-rule="required" data-source="project/index" data-multiple="true" class="form-control selectpage" name="row[project_ids]" type="text" value="{$row.project_ids|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Appointment_time')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-appointment_time" data-rule="required" class="form-control datetimepicker" data-date-format="YYYY-MM-DD HH:mm:ss" data-use-current="true" name="row[appointment_time]" type="text" value="{$row.appointment_time}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Cashier_id')}:</label>
        <div class="col-xs-12 col-sm-8">
            <!-- <input id="c-cashier_id" data-rule="required" data-source="cashier/index" class="form-control selectpage" name="row[cashier_id]" type="text" value="{$row.cashier_id|htmlentities}"> -->
        
            <select class="Cashier_id form-control" name="row[Cashier_id]">
                {volist name="cashierList" id='vo' key="key"}
                <option value="{$vo.id}" {if $row['adviser_id'] == $vo['id']} selected {/if}>{$vo.name}</option>
                {/volist}
            </select>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Remarks')}:</label>
        <div class="col-xs-12 col-sm-8">
            <textarea id="c-remarks" class="form-control " rows="5" name="row[remarks]" cols="50">{$row.remarks|htmlentities}</textarea>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Status')}:</label>
        <div class="col-xs-12 col-sm-8">
            
            <div class="radio">
            {foreach name="statusList" item="vo"}
            <label for="row[status]-{$key}"><input id="row[status]-{$key}" name="row[status]" type="radio" value="{$key}" {in name="key" value="$row.status"}checked{/in} /> {$vo}</label> 
            {/foreach}
            </div>

        </div>
    </div>
    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-success btn-embossed disabled">{:__('OK')}</button>
            <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
        </div>
    </div>
</form>
